package com.zhentao.apis.article;


import com.zhentao.apis.article.fallback.ArticleClientApiFallback;
import com.zhentao.model.common.article.dto.ArticleDto;
import com.zhentao.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Date 2024/3/1 21:18
 * @Author xdm
 **/

@FeignClient(value = "leadnews-article",fallback = ArticleClientApiFallback.class)
public interface ArticleClientApi {
    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto);

}
